Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复解析nsqd/stats 接口json被截断问题 #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

seiferli
Copy link

当 nsqd:4151/stats 超过 4096 字节,json会被截断,导致无法读取 nsqd 的topic信息

igotcha added a commit to igotcha/nsq_exporter that referenced this pull request Sep 27, 2023
Signed-off-by: igotcha <dengxiewei@gmail.com>
@CodFrm
Copy link

CodFrm commented Mar 1, 2024

Thank you, my problem has been resolved.

I have written a new Dockerfile:

FROM golang:1.18-alpine3.16 AS base

WORKDIR /app

COPY . .

RUN go mod tidy && go build -o nsq_exporter ./cmd

FROM alpine:3.16

EXPOSE 9117

COPY --from=base /app/nsq_exporter /nsq_exporter

ENTRYPOINT ["/nsq_exporter"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants